﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace HappyPuffy.Structs
{
     abstract class SpriteBase
    {
        public Texture2D _texture;
        public  Vector2 _vector;
        public  Color _colore;
        
        public SpriteBase(Texture2D texture,Vector2 vector, Color color)
        {
             _texture = texture;
            _vector = vector;
            _colore = color;
        }

        public virtual void SetPosition(float x, float y)
        {
            _vector.X = x;
            _vector.Y = y;
        }

        public virtual void AddPosition(float addX, float addY)
        {

           _vector.X += addX;
            _vector.Y += addY;
        }

        public abstract void Update();


        //public virtual void Update(Vector2 vector)
        //{
        //    _vector = vector;
        //}

        public abstract void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch sprite);


    }
}
